Package MusicLandscape.entities
Class MusicVideo
- java.lang.Object
-
- MusicLandscape.entities.Release
-
- MusicLandscape.entities.MusicVideo
-
public class MusicVideo extends Release
This class represents a music video as a concrete release of a specific artist.
A music video is a video presentation for a single track and has the same duration as the track.- Since:
- ExerciseSheet04
- Version:
- 1
- Author:
- Jonas Altrock (ew20b126@technikum-wien.at)
-
-
Constructor Summary
Constructors Constructor Description MusicVideo()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackgetTrack()Gets the track of this music video.voidsetTrack(Track track)Sets the track of this music video.java.lang.StringtoString()Gets a String representation of this music video.inttotalTime()Gets the total running time of this music video.
-
-
-
Field Detail
-
track
private Track track
The track of this music video.
-
-
Method Detail
-
getTrack
public Track getTrack()
Gets the track of this music video.- Returns:
- the track
-
setTrack
public void setTrack(Track track)
Sets the track of this music video.- Parameters:
track- the track to set
-
totalTime
public int totalTime()
Gets the total running time of this music video.
-
-